import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const TokenKeys = 'Admin-Tokens'

export function getToken() {
  return Cookies.get(TokenKey)
}
// 新写的token
export function getTokens() {
  return Cookies.get(TokenKeys)
}
export function setTokens(token) {
  return Cookies.set(TokenKeys, token)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
